<?php

namespace App\Repositories;

use App\Exceptions\BasicException;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use function Matrix\add;    //引入hash

class GoldPriceRepository {
        /*
     * 产出的金币数量
     * @param $param
     * @return bool
     * @throws BasicException
     * */
    public function allTotalGold() {
        $allTotalGold =app('model_gold_price')->sum('total_cost');
        return $allTotalGold ?? 0;
    }


}


?>